package com.suse.lhw.security.service.Impl;

import org.springframework.stereotype.Service;

import javax.annotation.Resource;

import com.suse.lhw.domin.PPackage;
import com.suse.lhw.dao.PPackageMapper;
import com.suse.lhw.security.service.PPackageService;
import org.springframework.transaction.annotation.Transactional;

/**
 * @ProjectName: health_manage_system
 * @Package: com.suse.lhw.security.service.Impl
 * @ClassName: PPackageServiceImpl
 * @Description: java类作用描述
 * @Author: 李鸿炜
 * @CreateDate: 2020/4/15 10:30
 * @UpdateUser: 更新者
 * @UpdateDate: 2020/4/15 10:30
 * @UpdateRemark: 更新说明
 * @Version: 1.0
 */
@Service
@Transactional

public class PPackageServiceImpl implements PPackageService {

    @Resource
    private PPackageMapper pPackageMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return pPackageMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(PPackage record) {
        return pPackageMapper.insert(record);
    }

    @Override
    public int insertSelective(PPackage record) {
        return pPackageMapper.insertSelective(record);
    }

    @Override
    public PPackage selectByPrimaryKey(Integer id) {
        return pPackageMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(PPackage record) {
        return pPackageMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(PPackage record) {
        return pPackageMapper.updateByPrimaryKey(record);
    }

}

